<?php

	// effercio2 by cdharrison

	// Sidebars
		if ( function_exists( 'register_sidebars' ) )
			register_sidebars( 2 );
	
	// Post Thumbnails
	// We need to add_theme_support to enable their use within the theme.
		if ( function_exists( 'add_theme_support' ) )
			add_theme_support( 'post-thumbnails' );
	

	// Allow the_post_thumbnail to be displayed with RSS feed items. By default, they won't appear.
	
		function insertThumbnailRSS( $content ) {
		   global $post;
		   if ( has_post_thumbnail( $post->ID ) ) {
			   $content = '<p class="image">' . get_the_post_thumbnail( $post->ID, 'medium' ) . '</p>' . $content;
		   }
		   return $content;
		}
		add_filter( 'the_excerpt_rss', 'insertThumbnailRSS' );  
		add_filter( 'the_content_feed', 'insertThumbnailRSS' ); 
?>